package com.hf.eagle.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hf.eagle.dao.AdvertisementConfigDao;
import com.hf.eagle.domain.AdvertisementConfig;
import com.hf.eagle.service.AdvertisementConfigService;

/**
 * @author Xu,XiaoYuan
 * @version 2011-11-13 19:34
 */
@Service
public class AdvertisementConfigServiceImpl implements AdvertisementConfigService {

	@Resource
	private AdvertisementConfigDao advertisementConfigDao;
	

	public Long createAdvertisementConfig(AdvertisementConfig t) {
		return this.advertisementConfigDao.insertEntity(t);
	}

	public AdvertisementConfig getAdvertisementConfig(AdvertisementConfig t) {
		return this.advertisementConfigDao.selectEntity(t);
	}

	public Long getAdvertisementConfigCount(AdvertisementConfig t) {
		return this.advertisementConfigDao.selectEntityCount(t);
	}

	public List<AdvertisementConfig> getAdvertisementConfigList(AdvertisementConfig t) {
		return this.advertisementConfigDao.selectEntityList(t);
	}

	public int modifyAdvertisementConfig(AdvertisementConfig t) {
		return this.advertisementConfigDao.updateEntity(t);
	}

	public int removeAdvertisementConfig(AdvertisementConfig t) {
		return this.advertisementConfigDao.deleteEntity(t);
	}

	public List<AdvertisementConfig> getAdvertisementConfigPaginatedList(AdvertisementConfig t) {
		return this.advertisementConfigDao.selectEntityPaginatedList(t);
	}

}
